package chimpazilla.app.coobra;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Principal extends Activity {

	private Button Btvotar;
	private Button Btacompanhe;
	private Button Btproposta;
	
	
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.principal);
        
        Btvotar = (Button)findViewById(R.id.btvotar);
        Btvotar.setOnClickListener(new OnClickListener() {
			        	
			@Override
			public void onClick(View v) {
				Intent it = new Intent(Principal.this, Vote.class);
				startActivity(it);
				
			}
		});
        
        Btacompanhe = (Button)findViewById(R.id.btacompanhe);
        Btacompanhe.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent it = new Intent(Principal.this, Acompanhe.class);
				startActivity(it);
				
			}
		});
        
        Btproposta = (Button)findViewById(R.id.btproposta);
        Btproposta.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent it = new Intent(Principal.this, Cadastrar_Propostas.class);
				startActivity(it);
				
			}
		});
        
        
    }
}
